package com.zhang.boot.core.constants;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "token")
@Component
@Data
public class TokenConstant {
    private String header;
    private String secret;
    private int expireTime;

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";
}
